package com.example.xxpk.service.userprops;

import com.example.xxpk.bo.UserPropsInfo;
import com.example.xxpk.pojo.UserProps;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhangguihong
 * @since 2025-02-13
 */
public interface IUserPropsService extends IService<UserProps> {

    List<UserPropsInfo> getUserPropsInfoByUserId(Integer userId);

    //获得道具
    boolean obtainProps(Integer userId, Integer propsId, Integer propsCount);

    //使用道具
    boolean useProps(Integer userId, Integer propsId, Integer propsCount);
}
